package com.azt.novel.home.service.impl;


import com.azt.novel.common.resp.RestResp;
import com.azt.novel.home.resp.HomeFriendLinkRespDto;
import com.azt.novel.home.manager.FriendLinkCacheManager;
import com.azt.novel.home.service.IHomeFriendLinkService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 友情链接 服务实现类
 * </p>
 *
 * @author azt
 * @since 2023-12-02
 */
@Service
public class HomeFriendLinkServiceImpl implements IHomeFriendLinkService {

    @Resource
    private FriendLinkCacheManager friendLinkCacheManager;

    @Override
    public RestResp<List<HomeFriendLinkRespDto>> listHomeFriendLinks() {
        return RestResp.ok(friendLinkCacheManager.listHomeFriendLinks());
    }
}
